<?php

namespace Admin\Models\res;

use Admin\Models\BaseModel;

class XhresReferenceRepeal extends BaseModel
{

    /**
     *
     * @var integer or string
     */
    public $iId;
    public $iStatus;
    public $iSchoolId;
    public $sAppCode;
    public $iClassId;
    public $iSubject;
    public $iBookId;
    public $sBookName;
    public $sTeacherList;
    public $iTeacherNum;
    public $sRecord;
    public $sRemark;

    /**
     *
     * @var integer
     */
    public $bDelete;

    /**
     *
     * @var string
     */
    public $tCreateDate;

    /**
     *
     * @var string
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     */
    public $tLastModifyDate;

    /**
     *
     * @var string
     */
    public $iLastModifyUserId;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
        $this->setSource("XHRes_ReferenceRepeal");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHRes_ReferenceRepeal';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     *
     * @return \Phalcon\Mvc\Model\ResultsetInterface | XhresReferenceApply
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     *
     * @return \Phalcon\Mvc\Model | XhresReferenceApply
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
